package com.yzh.animal;

/**
 * @author 于振晗
 * @title: Test
 * @description: TODO 动物猫狗测试类
 * @date 2020年08月25日    animal
 * @path com.yzh.animal
 */
public class Test {
    public static void main(String[] args) {
        Cat cat = new Cat("red", 3, 5.5);
        cat.eat();
        cat.rest();
        cat.introduce();
        Dog dog = new Dog("red", 3, "小狗");
        dog.eat();
        dog.rest();
        dog.introduce();
    }
}
